﻿<phone:PhoneApplicationPage xmlns:my1="clr-namespace:FeatureDemo" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
    xmlns:local="clr-namespace:FeatureDemo.Helper"
    xmlns:System_Device_Location="clr-namespace:System.Device.Location;assembly=System.Device"
    x:Class="FeatureOverview.Features.Shell.BingMaps"
    SupportedOrientations="Portrait"
    Orientation="Portrait"
    mc:Ignorable="d"
    d:DesignHeight="768"
    d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">


    <phone:PhoneApplicationPage.FontFamily>
        <StaticResource
            ResourceKey="PhoneFontFamilyNormal" />
    </phone:PhoneApplicationPage.FontFamily>
    <phone:PhoneApplicationPage.FontSize>
        <StaticResource
            ResourceKey="PhoneFontSizeNormal" />
    </phone:PhoneApplicationPage.FontSize>
    <phone:PhoneApplicationPage.Foreground>
        <StaticResource
            ResourceKey="PhoneForegroundBrush" />
    </phone:PhoneApplicationPage.Foreground>

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid
        x:Name="LayoutRoot"
        Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition
                Height="Auto" />
            <RowDefinition
                Height="*" />
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <my1:HeaderControl
            Grid.Row="0" 
            Title="Bing Maps"/>
        
        <!--ContentPanel - place additional content here-->
        <Grid
            x:Name="ContentGrid"
            Grid.Row="1">
            <my:Map
                x:Name="map1"
                ZoomLevel="6">
                <my:Map.Center>
                    <System_Device_Location:GeoCoordinate
                        Altitude="NaN"
                        Course="NaN"
                        HorizontalAccuracy="NaN"
                        Longitude="30"
                        Latitude="52"
                        Speed="NaN"
                        VerticalAccuracy="NaN" />
                </my:Map.Center>
            </my:Map>
            <Button
                Content="Button"
                Height="72"
                HorizontalAlignment="Left"
                Margin="104,38,0,0"
                Name="button1"
                VerticalAlignment="Top"
                Width="160" />
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>
